#ifndef __DHT11_DEVICE_H__
#define __DHT11_DEVICE_H__

#include "main.h"
#include "driver_dht11.h"

typedef struct
{
    unsigned int temperature;
    unsigned int humidity;
}DHT11_VAL;

typedef struct dHT11Dev
{
    char *name;
    DHT11_VAL value;
    int (*Init)(struct dHT11Dev *ptDHT11Dev);
    int (*GetValue)(struct dHT11Dev *ptDHT11Dev);
}dHT11Dev, *pDHT11Dev;

pDHT11Dev GetDHT11Device(char *name);

#endif 

